package com.ruoyi.project.domain.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.base.Field;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel("阶段字典配置表")
@TableName("project_attachment")
public class ProjectAttachment extends Field {

    private static final long serialVersionUID = 1L;

    /** 表id */
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("阶段编码")
    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    private Long attachmentId;

    /** 附件类别 */
    @Excel(name = "附件类别")
    private String attachmentType;

    /** 附件标题 */
    @Excel(name = "附件标题")
    private String attachmentTitle;

    /** 关联的阶段 */
    @Excel(name = "关联的阶段")
    private Long phaseId;

    /** 附件名称 */
    @Excel(name = "附件名称")
    private String fileName;

    /** 附件地址 */
    @Excel(name = "附件地址")
    private String filePath;


    /** 阶段名称 */
    @Excel(name = "阶段名称")
    private String phaseName;

    /** 项目id */
    @Excel(name = "项目id")
    private String projectNo;

    /** 操作员 */
    @Excel(name = "操作员")
    private String operator;

    /** 操作员 */
    @Excel(name = "操作员")
    private String remark;


//是否覆盖老数据
    @TableField(exist = false)
    private Boolean isDelete = true;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date completeDate;

}
